diff options
| author | Adam Soltys <[email protected]> | 2022-11-08 16:33:17 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-11-08 16:33:49 -0800 |
| commit | 376ff340ad9a0e15efec997c560f7e4db765f65c (patch) | |
| tree | e2f28b2367c0ae9567447b5bec49f2f59126f8b0 /src/routes/(app)/[username]/dashboard | |
| parent | 4b15454e4b37e212a646d5b85fea7ae8eab374e2 (diff) | |
| download | coinos-ui-376ff340ad9a0e15efec997c560f7e4db765f65c.tar.gz coinos-ui-376ff340ad9a0e15efec997c560f7e4db765f65c.zip | |
handle on-chain deposits
Diffstat (limited to 'src/routes/(app)/[username]/dashboard')
| -rw-r--r-- | src/routes/(app)/[username]/dashboard/+page.svelte | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/src/routes/(app)/[username]/dashboard/+page.svelte b/src/routes/(app)/[username]/dashboard/+page.svelte index 93fac986..0ea0e0a8 100644 --- a/src/routes/(app)/[username]/dashboard/+page.svelte +++ b/src/routes/(app)/[username]/dashboard/+page.svelte @@ -52,23 +52,25 @@ </div> <div class="grid sm:grid-cols-2 gap-2 mt-8"> + <a href="/send"> + <button class="rounded-full border py-2 px-5 font-bold hover:opacity-80 w-full mb-2" + >{$t('user.dashboard.withdraw')}</button + > + </a> <a href={`/${user.username}/receive`}> <button class="rounded-full border py-2 px-5 font-bold hover:opacity-80 w-full mb-2" >{$t('user.dashboard.receive')}</button > </a> - {#if user.account.balance > 0} - <a href="/send"> - <button class="rounded-full border py-2 px-5 font-bold hover:opacity-80 w-full mb-2" - >{$t('user.dashboard.withdraw')}</button - > - </a> - {:else} - <a href={`/${user.username}/settings`}> - <button class="rounded-full border py-2 px-5 font-bold hover:opacity-80 w-full mb-2" - >Setup Account</button - > - </a> - {/if} + <a href={`/${user.username}/settings`}> + <button class="rounded-full border py-2 px-5 font-bold hover:opacity-80 w-full mb-2" + >Setup Account</button + > + </a> + <a href={`/${user.username}/address`}> + <button class="rounded-full border py-2 px-5 font-bold hover:opacity-80 w-full mb-2" + >Deposit</button + > + </a> </div> </div> |
